package com.healthcloud.service.serviceLocation.impl;

import com.healthcloud.dao.serviceLocation.ServiceLocationDao;
import com.healthcloud.entity.serviceLocation.ServiceLocationEntity;
import com.healthcloud.service.serviceLocation.ServiceLocationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.healthcloud.utils.PageParam;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service("serviceLocationService")
@Transactional
public class ServiceLocationServiceImpl implements ServiceLocationService {
	@Autowired
	private ServiceLocationDao serviceLocationDao;
	
	@Override
	public ServiceLocationEntity queryObject(Integer id){
		return serviceLocationDao.queryObject(id);
	}
	
	@Override
	public List<ServiceLocationEntity> queryList(ServiceLocationEntity bean, PageParam pageParam){
		return serviceLocationDao.queryList(bean, pageParam);
	}
	
	@Override
	public int queryTotal(ServiceLocationEntity bean){
		return serviceLocationDao.queryTotal(bean);
	}
	
	@Override
	public void save(ServiceLocationEntity serviceLocation){
		serviceLocationDao.save(serviceLocation);
	}
	
	@Override
	public void update(ServiceLocationEntity serviceLocation){
		serviceLocationDao.update(serviceLocation);
	}
	
	@Override
	public void delete(Integer id){
		serviceLocationDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		serviceLocationDao.deleteBatch(ids);
	}
	
}
